package com.sh.business.domain.vo;

import com.sh.business.domain.Document;
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.sh.common.excel.annotation.ExcelDictFormat;
import com.sh.common.excel.convert.ExcelDictConvert;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;



/**
 * 文案视图对象 bms_document
 *
 * @author ruoyi
 * @date 2024-10-08
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = Document.class)
public class DocumentVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @ExcelProperty(value = "主键")
    private Long id;

    /**
     * 标题
     */
    @ExcelProperty(value = "标题")
    private String title;

    /**
     * 语言
     */
    private String language;

    /**
     * 内容
     */
    @ExcelProperty(value = "内容")
    private String content;

    /**
     * 文案类型
     */
    @ExcelProperty(value = "文案类型", converter = ExcelDictConvert.class)
    @ExcelDictFormat(dictType = "biz_doc_type")
    private String type;

    private Date createTime;
}
